Method for modelling fluid flows in a multilayer porous medium crossed by an unevenly distributed fracture network

ABSTRACT

A method is disclosed for modelling low or high compressibility fluid flows in a multilayer porous medium crossed by a network of fractures of given geometry, unevenly distributed in the medium, some of the fractures communicating with one another. Each fractured layer is defined by means of a grid pattern comprising fracture grid cells centred on nodes either at the fracture intersections or at the fracture ends. Each node is associated with a matrix block including all the points closer thereto than to neighbouring nodes, and the local flows between each fracture grid cell and the associated matrix volume are calculated in a pseudosteady state. A modelling equation whose form is similar to the diffusion equation solved in conventional cases (low compressibility fluids) allows accounting for the compressibility of the fluids. The direct flows between the fracture grid cells and the direct flows between the matrix volumes through the common edges of the grid cells are determined, and the interactions between the pressure and flow rate variations that can be observed in at least one well through the medium are simulated.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a method for modelling low or high compressibility fluid flows in a multilayer porous medium crossed by a network of fractures of given geometry, unevenly distributed in the medium, some of the fractures communicating with one another.

[0003] 2. Description of the Prior Art

[0004] a) During oil well testing, the flow rate conditions imposed on the well cause the oil contained in the reservoir to flow towards the well. It is a single-phase (the only mobile phase is the oil) and a low compressibility flow.

[0005] For any elementary volume of the reservoir, the pressure of the oil contained in this volume is governed by the following equation (gravity is not taken into account): $\begin{matrix} {{\varphi \cdot C_{T} \cdot \frac{\partial P}{\partial t}} = {{{div}\left( {\frac{K}{\mu} \cdot {\nabla P}} \right)} + Q}} & (1) \end{matrix}$

[0006] where:

[0007] Φ: represents the pore volume,

[0008] C_(T), the total compressibility (fluid+rock),

[0009] K, the permeability of the rock,

[0010] μ, the viscosity of the fluid,

[0011] Q, the incoming flow,

[0012] P, the pressure unknown.

[0013] b) During gas well testing, the only mobile phase is the gas and it is highly compressible. For any elementary volume of the reservoir, the pressure of the gas contained in this volume is governed by the following equation: $\begin{matrix} {{\varphi \cdot C_{T} \cdot \frac{\partial\psi}{\partial t}} = {{{div}\left( {\frac{K}{\mu} \cdot {\nabla\psi}} \right)} + {\frac{2p}{\mu Z}Q}}} & (1) \end{matrix}$

[0014] where:

[0015] Φ: represents the pore volume,

[0016] C_(T), the total compressibility (fluid+rock),

[0017] K, the permeability of the rock,

[0018] μ, the viscosity of the fluid,

[0019] Z, the gas compressibility factor,

[0020] Q, the incoming flow, and

[0021] ψ, a pseudopressure function defined by ${\psi = {2{\int_{p_{0}}^{p}{\frac{p}{\mu \quad Z}\quad {p}}}}},$

[0022] where p is the pressure of the fluid.

[0023] The viscosity and the compressibility factor of the gas vary as a function of the pressure and they are given for a certain number of values in a table referred to as PVT table (Pressure Volume Temperature). From this table, the pseudopressure function defined above can be deduced and the gas compressibility deduced from the equation of state. The PVT table is thus a table with 5 columns (pressure, pseudopressure, viscosity, compressibility factor and gas compressibility) from which, at a given pressure, the corresponding pseudopressure, viscosity and compressibility can be obtained by linear interpolation (conversely, the other 4 data can be obtained by interpolation from a pseudopressure).

[0024] The incoming flow Q is zero everywhere, except in the places where the well communicates with the reservoir.

[0025] In order to simulate a well test, whatever the medium, this equation has to be solved in space and in time. Definition of the reservoir (grid pattern) is therefore performed and a solution to the problem is finding the pressures of the grid cells in the course of time, itself defined in a certain number of time intervals.

[0026] There are known single-phase flow modelling tools, which are however not applied to the real complex geologic medium but to a homogenized representation, according to the reservoir model called double-medium model described for example by Warren and Root in “The Behavior of Naturally Fractured Reservoirs”, SPE Journal, September 1963. Any elementary volume of the fractured reservoir is thus modelled in the form of a set of identical parallelepipedic blocks limited by an orthogonal system of continuous uniform fractures oriented in the direction of one of the three main directions of flow (model referred to as “sugar box” model). The fluid flow on the reservoir scale occurs mainly through the fractured medium, and fluid exchanges take place locally between the fractures and the matrix blocks. This representation, which does not reproduce the complexity of the fracture network in a reservoir, is however effective but at the level of a reservoir grid cell whose typical dimensions are 100 m×100 m.

[0027] It is however much preferable for reservoir engineers to have a flow simulator based on a “real” geologic model of the medium instead of an equivalent homogeneous model, so as to:

[0028] validate the geologic image of the reservoir built by the geologist from all the information gathered on the reservoir fracturation (this validation being performed by comparison with the real well test data),

[0029] reliably test the sensitivity of the hydraulic behaviour of the medium to the uncertainties on the geologic image of the fractured medium.

[0030] A well-known modelling method finely grids the fracture network and the matrix while making no approximation concerning fluid exchanges between the two media. It is however difficult to implement because the often complex geometry of the spaces between the fractures makes it difficult to grid them and, in any case, the number of grid cells to be processed is often very large. The complexity increases still further with a 3D grid pattern.

[0031] Techniques for modelling fractured porous media are described in French patents 2,757,947 and 2,757,957 filed by the assignee.

[0032] The former technique relates to determination of the equivalent fracture permeability of a fracture network in an underground multilayer medium from a known representation of this network, allowing systematic connection of fractured reservoir characterization models to double-porosity simulators in order to obtain more realistic modelling of a fractured underground geologic structure.

[0033] The second technique relates to simplified modelling of a porous heterogeneous geologic medium (such as a reservoir crossed through by an irregular network of fractures for example) in the form of a transposed or equivalent medium so that the transposed medium is equivalent to the original medium, according to a determined type of physical transfer function (known for the transposed medium).

[0034] French patent 2,809,494 filed by the assignee describes a method for simulating fluid flows in a fractured porous geologic medium crossed by a network of conducting objects of defined geometry, but which cannot be homogenized on the scale of each grid cell of the model (large fractures, subseismic faults for example, very permeable sedimentary layers, etc.), wherein the exchanges occurring between the matrix medium and the fracture medium are determined, and for modelling the transmissivities of the various grid cells crossed by each conducting object, so that the resulting transmissivity corresponds to the direct transmissivity along each object. In cases where the conducting objects are very permeable sedimentary layers, the transmissivity between the grid cells crossed by each highly permeable layer is given a value that depends on the dimensions of the grid cells and on the common area of contact between the layers at the junction of the adjacent grid cells. In cases where the conducting objects are fractures, the transmissivity between the grid cells crossed by each fracture is given a transmissivity that depends on the dimensions of the grid cells and on the common area of the fracture at the junction of the adjacent grid cells.

[0035] French patent 2,787,219 filed by the assignee describes a method for modelling low compressibility fluid (oil) flows in a fractured multilayer porous medium by accounting for the real geometry of the fracture network and of the local exchanges in the porous matrix and between the porous matrix and the fractures at each node of the network. The fractured medium is defined by a grid pattern and the fracture grid cells are associated with nodes placed either at the fracture intersections or at the fracture ends. Each node is associated with a matrix block or volume, the flows between each fracture grid cell and the associated matrix volume are calculated in a pseudosteady state. In cases where the fracture network is weakly connected, that is the fracture network does not run through all of the considered matrix volume, the direct flows between the matrix volumes through the common edges of the grid cells are also determined. Accounting for the transmissivities between matrix blocks associated with medium discretization nodes allows more realistic simulation of the response of a well to imposed flow rate variations.

SUMMARY OF THE INVENTION

[0036] The method according to the invention generalizes the technique described in the aforementioned French patent 2,787,219 in cases where the large-scale flows cross not only zones with relatively dense fracture networks but also weakly fractured zones (certain layers for examples), whether low compressibility fluids (oil) or high compressibility fluids (gas).

[0037] It comprises the following steps:

[0038] a) defining each fractured layer by a grid pattern comprising fracture grid cells that are centered on nodes either at the fracture intersections or at the fracture ends, each node being associated with a matrix block including all points that are closer thereto than to neighbouring nodes;

[0039] b) calculating local flows between each fracture grid cell and an associated matrix volume in a pseudosteady state, a transmissivity value being obtained by considering a linear variation of the pressure as a function of the distance between any point of the block and the fracture grid cell;

[0040] c) determining direct flows between the fracture grid cells;

[0041] d) determining direct flows between the matrix volumes through common edges of the grid cells;

[0042] e) determining direct flows between the fracture grid cells and the matrix grid cells on the one hand, and the volume of the well on the other hand; and

[0043] f) simulating the response of the well for imposed pressure and flow rate variations.

[0044] The method according to the invention finds applications notably for oil production. The method allows reservoir engineers to test by simulation the development of a reservoir by one or more wells crossing a permeable porous underground zone comprising two very different media, a matrix medium containing the greatest part of the oil in place and having a low permeability, and additionally conducting fracture networks running partly or entirely therethrough.

[0045] If the fluid is highly compressible, the direct flows are determined on one hand between the fracture grid cells and the matrix grid cells, and on another hand the volume of the well, from transmissivity values suited to turbulent flows, and a response of the well is simulated for imposed flow rate variations by means of a modified diffusion equation to account for compressibility of fluid which connects the interactions between the pressure and flow rate variations that can be observed in the well.

[0046] According to an embodiment, the diffusion equation is modified by introducing a term depending on the pressure, on the viscosity and on a compressibility factor of the compressible fluid.

[0047] According to an embodiment, the direct flows are determined on one hand between the fracture grid cells and the matrix grid cells, and on another hand the volume of the well, by introducing a deviation term proportional to the imposed fluid flow rate.

[0048] In order to determine the matrix block associated with each fracture grid cell, each fractured layer is, for example, defined in a set of pixels and a distance from each pixel to the closest fracture grid cell is calculated to determine a location of edges between the grid cells. The calculated distances are used to deduce a value of the transmissivities between each fracture grid cell and a associated matrix volume on the one hand, and between the common edges of the grid cells on another hand.

[0049] The position of the edges between the grid cells is, for example, located by displacing two elongate windows in an image formed by the pixels, oriented in two perpendicular directions.

[0050] Thus, by taking account of the transmissivities between matrix blocks associated with medium discretization nodes, of the high compressibility when the fluid considered is a gas and by adjusting the transmissivities between the matrix blocks and the well and between the fractures and the well, the response of a gas well to imposed flow rate variations can be realistically simulated.

BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Other features and advantages of the method according to the invention will be clear from reading the description hereafter, with reference to the accompanying drawings wherein:

[0052]FIG. 1 shows an example of a 2D fracture grid,

[0053]FIG. 2 shows an example of a 2D matrix block,

[0054]FIG. 3 shows an example of two matrix blocks MB communicating by means of a fracture element FE,

[0055]FIG. 4 shows an example of two matrix blocks MB crossed each by a fracture element and communicating by means of exchanges through their common edges A,

[0056]FIG. 5 shows examples of windows oriented along two perpendicular axes, allowing location of the edges between the matrix blocks,

[0057]FIG. 6 shows a well W intersected by two fractures,

[0058]FIG. 7 shows an example of variation, as a function of the time t, of the imposed flow rate D in a well test,

[0059]FIG. 8 shows two flow types, a linear flow (LF) and a radial flow (RF), from the matrix to the well,

[0060]FIG. 9 shows a first part of the flowchart for implementing the modelling method, modified in the case considered where the fluids are highly compressible, and

[0061]FIG. 10 shows a complementary part of the flowchart for implementing the modelling method, modified in the case where the fluids are highly compressible.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0062] In the case of a fractured medium, if all the complexity of the fracture network is to be taken into account, it is necessary to have an explicit grid of this network. Moreover, in such a medium, the permeabilities K are generally much higher in the fractures than in the matrix and the flows are therefore fast in the fractures and slow in the matrix. The fractured medium therefore has to be represented by means of the double medium concept (matrix and fracture) described in the aforementioned French patent 2,787,219. The steps of the approach selected in the case where the fluid produced is oil are as follows:

[0063] explicit gridding of the fracture network,

[0064] association with each fracture grid cell of a single matrix block,

[0065] processing of the flows between each fracture grid cell and an associated block in a pseudosteady state where the flow from one to the other is proportional to the pressure difference between them,

[0066] accounting for the flows between matrix blocks, and

[0067] dynamic simulation of the flows in the fracture network and in the matrix medium.

[0068] If the fluid produced is highly compressible, typically a gas, specification or modification as follows occurs:

[0069] flow modelling equations of the system are defined so as to obtain a differential equation of the same form as for the low compressibility flows,

[0070] the terms are defined that describe the fluid flows between the well grid cells and the adjacent fracture grid cell, as well as between the well grid cells and the adjacent matrix grid cell, and

[0071] dynamic simulation is performed to update during the simulation the viscosity and total compressibility parameters upon each time iteration by means of an interpolation technique, from a PVT data table.

[0072] The unknowns are the pressures of the fracture grid cells and the pressures of the associated matrix blocks. Since there are as many matrix blocks as there are fracture grid cells, the number of unknowns is twice this number.

[0073] Diffusion Equation

[0074] The diffusion equation that is solved is deduced from the mass conservation equation, from Darcy's law and from an equation of state which depends on the compressibility of the mobile fluid. Two different equations of state are considered according to whether the fluid is weakly compressible (oil, case a) or highly compressible (gas, case b).

[0075] a) For Weakly Compressible Fluids (Oil)

[0076] The equation of state expressing the equivalent compressibility of the mobile fluid (oil) is as follows: $\begin{matrix} {c_{h} = {\frac{1}{\rho}\left( \frac{\partial\rho}{\partial p} \right)_{T}}} & (2) \end{matrix}$

[0077] Considering the system of the three equations or law mentioned above (mass conservation and state equations, Darcy's law), for any elementary volume of the reservoir, the pressure of the oil contained in this volume is governed by the following differential equation: $\begin{matrix} {{\varphi \cdot C_{T} \cdot \frac{\partial P}{\partial t}} = {{{div}\left( {\frac{K}{\mu} \cdot {\nabla P}} \right)} + Q}} & (3) \end{matrix}$

[0078] where:

[0079] Φ: represents the porosity,

[0080] C_(T), the total compressibility (fluid+rock),

[0081] K, the permeability of the rock,

[0082] μ, the viscosity of the fluid,

[0083] Q, the incoming flow,

[0084] ρ, the density of the fluid,

[0085] P, the pressure unknown.

[0086] b) For Highly Compressible Fluids (Gas)

[0087] In the case of gas, the density, which varies considerably as a function of the pressure, is expressed as follows: $\begin{matrix} {\rho = \frac{pM}{ZRT}} & (4) \end{matrix}$

[0088] with M the molar mass of the gas, R perfect gas constant and Z the compressibility factor of the gas which expresses the difference between the real gas and the perfect gases. The compressibility of the gas can thus be expressed as follows: $\begin{matrix} {c_{g} = {\frac{1}{p} - {\frac{1}{Z}\left( \frac{\partial Z}{\partial p} \right)_{T}}}} & (5) \end{matrix}$

[0089] The differential diffusion equation thus becomes: $\begin{matrix} {{{{div}\left( {{- \frac{p}{\mu Z}}k\overset{}{grad}p} \right)} + {{\Phi\mu}\quad C_{t}\frac{p}{\mu \quad Z}\frac{\partial P}{\partial t}}} = {q\frac{p}{Z}}} & (6) \end{matrix}$

[0090] with C_(t) the global compressibility of a unit element of the saturated porous volume.

[0091] In order to obtain the form of a more conventional diffusion equation, this equation is expressed by means of a pseudopressure function defined by: $\begin{matrix} {\psi = {2{\int_{p_{0}}^{p}{\frac{p}{\mu \quad Z}\quad {p}}}}} & (7) \end{matrix}$

[0092] The diffusion equation expressed in pseudopressure is eventually written as $\begin{matrix} {{{\frac{{\Phi\mu}\quad C_{t}}{k}\frac{\partial\psi}{\partial t}} - {\Delta\psi}} = {2\frac{p}{\mu \quad Z}q}} & (8) \end{matrix}$

[0093] follows:

[0094] The form of the differential equation to be solved is then similar to the form used in the case of low compressibility fluids. The unknown is the pseudopressure ψ (related to the pressure by the PVT table).

[0095] Fracture Network Discretization

[0096] In 2D, the computing nodes are positioned at the intersections between fractures and at the ends of the fractures. For the purpose of 3D modelling, additional nodes have to be added in the upper and lower layers for fractures running across several layers.

[0097] In the grid pattern of the present method, the computing nodes thus defined constitute the center of the fracture grid cells. Furthermore, simulation of highly compressible flows requires knowledge of the volume of the grid cells (φ in Equation 8). Grid cell boundaries positioned at the midpoint of the segments connecting the computing nodes are therefore defined. The diagram of FIG. 1 shows an example of a 2D fracture grid cell. In terms of number of computing nodes, gridding of the fracture network is thus optimal.

[0098] Fracture-Fracture Transmissivities

[0099] The connections between fracture grid cells (transmissivities) used for computation of the flows between these fracture grid cells are computed as described in the method disclosed in the aforementioned French patent 2,757,947.

[0100] Matrix Medium Discretization

[0101] According to the principle of the method, definition of the matrix medium assigns a rock volume to each fracture grid cell defined as mentioned in the above paragraph. During dynamic simulation, exchanges between the matrix and the fractures are calculated in the pseudosteady state between each fracture grid cell and its associated single matrix block.

[0102] For calculation of these matrix volumes, the problem is solved with layer by layer.

[0103] For a given layer, the blocks are defined as follows:

[0104] the block heights are equal and fixed to the height of the layer,

[0105] in the plane of the layer, the surface area of the block associated with a fracture grid cell is all the points that are closer to this fracture grid cell than to another one.

[0106] Physically, this definition implies that the boundaries at zero flow in the matrix are the equidistance lines between the fracture grid cells.

[0107] In order to determine the geometry of the blocks in a given layer, a two-dimensional problem finds, for each fracture grid cell, the points that are closer to this grid cell than to another one has to be solved. This problem is solved by using the geometric method described in the aforementioned French patent 2,047,957.

[0108] This method allows, by defining the fractured layer into a set of pixels and by applying an image processing algorithm, to determine a distance from each pixel to a closest fracture. During the initialization phase of this algorithm, value 0 (zero distance) is assigned to the pixels belonging to a fracture and a high value is assigned to the others. Furthermore, if each fracture pixel is given the number of the fracture grid cell to which it belongs in this phase, the same algorithm finally allows determination, for each pixel:

[0109] the distance from this pixel to the closest fracture grid cell, and

[0110] the number of the closest fracture grid cell.

[0111] All of the pixels having the same fracture grid cell number constitute the surface area of the matrix block associated with this grid cell. Multiplying this surface area by the height of the layer allows obtaining the volume of the block associated with the grid cell. FIG. 2 shows an example of a thus obtained 2D matrix block.

[0112] By construction, the sum of the surface areas of the blocks is equal to the total surface area of the layer, which guarantees the conservation of the volume of the layer.

[0113] Matrix-Fracture Transmissivities

[0114] For each matrix block, the image processing algorithm also gives the distance from each pixel of the block to the associated fracture grid cell. This data is used to calculate the transmissivity between the fracture grid cell and the matrix block.

[0115] The assumption of a pseudosteady state flow between a fracture grid cell and a matrix block amounts to considering that the flow between the cell and the matrix block is proportional to the difference in the pressures between the cell and the matrix block. The following relation exists: $\begin{matrix} {F_{mf} = {\frac{T_{mf}}{\mu} \cdot \left( {p_{m} - p_{f}} \right)}} & (9) \end{matrix}$

[0116] where:

[0117] F_(mf) is the matrix-fracture flow,

[0118] T_(mf), the matrix-fracture transmissivity,

[0119] μ, the viscosity,

[0120] p_(m), the pressure of the matrix block, and

[0121] p_(f), the pressure of the associated fracture grid cell.

[0122] On the assumption of a pseudosteady state, the value of transmissivity T_(mf) is constant during simulation. In the present method, this value is calculated for each fracture grid cell-matrix block pair.

[0123] For this calculation, it is assumed that, in the matrix block, the pressure varies linearly as a function of the distance from the point considered to the fracture grid cell associated with the block. The transmissivity is defined as follows: $\begin{matrix} {T_{mf} = \frac{21 \cdot H \cdot K}{D}} & (10) \end{matrix}$

[0124] where:

[0125] l is the length of the fractures in the fracture grid cell,

[0126] H, the height of the layer (and of the matrix block),

[0127] K, the permeability of the matrix, and

[0128] D, the distance from the fractures for which the pressure is the mean pressure of the block.

[0129] l, H and K are known (factor 2 comes from the fact that the fracture has two faces). Calculation of D is made from the information provided by the image processing algorithm concerning the distances from the pixels to the closest fractures. In fact, according to a hypothesis of a linear variation of the pressure as a function of the distance to the fracture, the relationship exists: $\begin{matrix} {D = {\frac{1}{S} \cdot {\int_{S}{{(s)} \cdot {s}}}}} & (11) \end{matrix}$

[0130] where S is, in 2D, the surface area of the matrix block and d(s) is the function giving the distance between the points of the matrix block and the associated fracture grid cell.

[0131] In terms of pixels, the relationship exists: $\begin{matrix} {D = {\frac{1}{N} \cdot {\sum\limits_{N}^{\quad}d_{n}}}} & (12) \end{matrix}$

[0132] where N is the number of pixels of the matrix block and d_(n) the distance from pixel n to the fracture grid cell.

[0133] Matrix-Matrix Transmissivity

[0134] Computation of the exchanges between matrix blocks is based on a numerical 2-point flow approximation scheme. This approach implies that the flow between two matrix blocks is perpendicular to the edge between these two blocks. This numerical scheme is therefore generally used for orthogonal and Voronoi grid patterns.

[0135] Herein, the matrix blocks have any geometry. Furthermore, the presence of the fractures leads to consideration of two possible geometric cases.

[0136] In the first case (FIG. 3), the edge between the two matrix blocks is crossed by a fracture. In the second case, it is not.

[0137] In the second case (FIG. 4), it is assumed that, in each of the two fractures of the problem, the pressure can be considered to be constant in relation to the pressure variation in the associated matrix block (because the conductivity of the fracture is very high in relation to the permeability of the matrix). A two-point transmissivity is calculated between the two fracture segments through the edge that separates the two matrix blocks.

[0138] This computation is made by means of an image processing algorithm using the digital image defined upon determination of the matrix block geometry, which therefore gives information, for each pixel of the image, about the distance from this pixel to the closest fracture and about the matrix block to which this pixel belongs.

[0139] The image processing algorithm locates the elementary interfaces between blocks, i.e. the edges between two pixels associated with two different blocks. The algorithm

T−k HΣ{square root}{square root over (p²−(di_(n)−df_(n))²)}  (13)

[0140] computes, for each interface, an elementary transmissivity between the two blocks and updates a total transmissivity between these blocks with the formula as follows:

[0141] where T_(mm) is the matrix-matrix transmissivity between two matrix blocks, M is the number of elementary interfaces between the two blocks, p is the size of the side of the pixels, and di_(n) and df_(n) are the distances from the two ends of interface n to the closest fractures. As can be seen, the total transmissivity is a sum of elementary transmissivities calculated for each interface between the two blocks.

[0142]FIG. 5 shows a set of pixels belonging to grid cells 1, 2 and 3. In order to locate the interfaces between the pixels of these grid cells, the image processing algorithm displaces two windows consisting of 2 times 1 pixel along the lines and the columns of the image. There is a vertical window for location of the horizontal interfaces and a horizontal window for location of the vertical interfaces.

[0143] In cases where a fracture crosses an edge between two matrix blocks, the transmissivity between these two blocks is simply calculated by means of the expression as follows: $\begin{matrix} {T_{mm}{k_{m} \cdot H \cdot \frac{l}{L_{AB}}}} & (14) \end{matrix}$

[0144] where l is the length of the edge and L_(AB) the length of the fracture connecting centers A and B. The length of the fracture is known from the construction and the length of the edge is calculated by the image processing algorithm from the elementary interfaces between the matrix blocks of centres A and B.

[0145] Well Representation

[0146] A well is represented by its geometry on the one hand and by the flow rate constraints imposed thereon with time on the other hand.

[0147] A well is a series of connected segments that intersect the network fractures (FIG. 6). The geometric representation of a well is therefore a 3D broken line. The points of communication between the well and the network are the points of intersection of this line with the fractures.

[0148] The flow rate constraints are imposed at the point where the well enters the fractured medium. They are entered by the user in the form of a step function giving the flow rate as a function of time. The flow rate change times of the well indicate the various periods to be simulated. For a conventional well test, a flow rate is imposed for a first period after which the well is closed (zero flow rate) and the pressure buildup is observed in the well. The flow rate curve to be given is shown in FIG. 7.

[0149] Well-Reservoir Connection

[0150] a) Fracture-Well Transmissivity

[0151] Computation of the exchanges between the well and a fracture is based on the pseudosteady state flow assumption, that is the flow from one to the other is considered to be proportional to the difference in the pressures of one to the other. The following relation exists: $\begin{matrix} {F_{pf} = {\frac{T_{pf}}{\mu} \cdot \left( {p_{p} - p_{f}} \right)}} & (15) \end{matrix}$

[0152] with:

[0153] F_(pf): the well-fracture flow,

[0154] T_(pf): the well-fracture transmissivity,

[0155] μ: the viscosity,

[0156] p_(p): the well pressure,

[0157] p_(r): the pressure of the associated fracture grid cell.

[0158] On the assumption of a pseudosteady state flow, the value of transmissivity T_(pf) is constant during simulation. In the present method, this value is calculated for each fracture grid cell-well segment pair.

[0159] Darcy's law, which is used to obtain the differential equation governing the fluid flow in the porous medium, implies that the flow is laminar. In the case of gases and in the neighbourhood of the well, the velocity of the fluid increases greatly so that the flow is no longer laminar (turbulent flow). In this precise case, Darcy's law is not applicable. To overcome this problem, it has been shown that, by introduction of a term referred to as term of deviation from Darcy's law (depending on the imposed flow rate) whose formulation is established for laminar flows, the fluid flow is correctly represented. This term of deviation from Darcy's law is written in the form as follows:

S′=S ₀ +D.Q   (16)

[0160] S′ has the dimension of an additional pressure drop, S₀ represents the changes in the hydraulic properties around the well (damage during drilling, injection of acids into the well) and coefficient D is a datum characteristic of the turbulent state flow.

[0161] In the present approach, the coefficients S₀ and D in the expression of the fracture-well transmissivity used for representing the flow between the connected fracture and well are introduced.

[0162] If the intersection between a fracture and the well is substantially circular, the transmissivity is defined as follows: $\begin{matrix} {T_{pf} = \frac{2\pi \quad C_{f}}{{\ln \left( \frac{2r_{0}}{d_{w}} \right)} + S_{0} + {D\left( {q_{n} + q_{n + 1}} \right)}}} & (17) \end{matrix}$

[0163] with:

[0164] r₀=0.14{square root}{square root over ((l_(f)))}²+(h)², for isotropic media,

[0165] C_(f)=k_(f) e_(f), k_(f) being the intrinsic permeability of the fracture and e_(f) the opening thereof,

[0166] l_(f): the fracture length,

[0167] h: the thickness of the layer, and

[0168] q_(n) the flow rate of the well segment at the flow rate scale n.

[0169] In cases where the fracture-well intersection is any intersection (elliptical), the transmissivity calculation is deduced from Peaceman's generalized function, which is well-known in the art.

[0170] b) Matrix-Well Transmissivity

[0171] Computation of the exchanges between the well and an associated matrix grid cell is also based on the pseudosteady state assumption. To express these exchanges, the formulations relative to a radial flow around the well and a linear flow to the well (FIG. 8) are combined. The transmissivity is then defined as follows: $\begin{matrix} {T_{mw} = \frac{2\pi \quad k_{m}l_{i}}{{\ln \left( \frac{2h}{d_{w}} \right)} + \frac{2{\pi \left( {l_{m} - h} \right)}}{h} + S_{0} + {{Dq}_{i}\left( t_{j} \right)}}} & (18) \end{matrix}$

[0172] where:

[0173] l_(i): the length of the well segment,

[0174] l_(m): the distance to the well at which the pressure is the mean pressure of the matrix block.

[0175] Dynamic Simulation

[0176] During dynamic simulation, the simulated period of time is split up into time intervals whose length ranges, for a well test, between 1×10⁻³ s (just after opening or closing of the well) and some hours.

[0177] The change from the time n (where all the pressure values are known) to the time n+1 is achieved by solving, in all the grid cells and blocks of the reservoir, the following equation which corresponds to Equation 8 once defined. Unlike the case where the fluid is weakly compressible, the equation which is used is a nonlinear differential equation insofar as the compressibility and the viscosity of the fluid vary as a function of the pressure. The differential equation is written as follows: $\begin{matrix} {{{\varphi_{i} \cdot \left( C_{T} \right)_{\psi_{i}^{n + 1}} \cdot \frac{\psi_{i}^{n + 1} - \psi_{i}^{n}}{\,^{n + 1}{- t^{n}}}} + {\sum\limits_{j}^{\quad}{\left( \frac{T_{ij}}{\mu} \right)_{(\frac{\psi_{i}^{n + 1} + \psi_{j}^{n + 1}}{2})} \cdot \left( {\psi_{i}^{n + 1} - \psi_{j}^{n + 1}} \right)}}} = {2\frac{p^{n}}{\mu^{n}Z^{n}}Q_{i}}} & (19) \end{matrix}$

[0178] where:

[0179] i, the number of the grid cell or of the block,

[0180] j, the numbers of the neighbours of i,

[0181] ψ^(n): the pseudopressure at the time n,

[0182] p^(n), the pressure at the time n,

[0183] t^(n), the time at the time n,

[0184] (C_(T))ψ_(i) ^(n+1): the total compressibility of the fluid for a pressure at the time n+1,

[0185] $\mu_{(\frac{\psi_{i}^{n + 1} + \psi_{j}^{n + 1}}{2})}:$

[0186] the viscosity of the fluid for a pressure at the time n+1 at the interface between grid cells i and j,

[0187] Z^(n): the compressibility factor of the fluid for a pressure at the time n,

[0188] μ^(n): the viscosity of the fluid for a pressure at the time n,

[0189] Q_(i), the flow entering i at the well bottom, and

[0190] T_(ij), the connection transmissivity between i and j.

[0191] To solve this nonlinear equation, a conventional Newtonian method is used which consists in linearizing Equation (19) by expressing:

ψ^(n+1,k+1) _(i)=ψ^(n+1,k) _(i)+δψ_(i)   (20)

[0192] The technique then is based on, upon each iteration k, in solving the linear system described hereafter so that the value of unknown δψ_(i) becomes negligible. After convergence with k+1 iterations, variable ψ_(i) ^(n+1)=ψ_(i) ^(n+1,k+1) is determined and, by linear interpolation on the PVT table, all the grid cell pressures, the compressibility and the viscosity of the fluid are updated.

[0193] Constitution of the System to be Solved

[0194] Calculation of the Fracture Grid Cells and Matrix Contribution

[0195] accumulation term: $\frac{{\Phi_{i} \cdot \left( C_{T} \right)_{\psi_{i}^{{n + 1},k}}} + {{\Phi_{i}\left( \frac{C_{T}}{\psi} \right)}_{\psi_{i}^{{n + 1},k}}\left( {\psi_{i}^{{n + 1},k} - \psi_{i}^{n}} \right)}}{t^{n + 1} - t^{n}}$

[0196] connection between fracture grid cells: $\left( \frac{T_{i,j}}{\mu} \right)_{(\frac{\psi_{i}^{{n + 1},k} + \psi_{j}^{{n + 1},k}}{2})}\left( {1 - {\left( {\frac{1}{\mu}\frac{\mu}{\psi}} \right)_{(\frac{\psi_{i}^{{n + 1},k} + \psi_{j}^{{n + 1},k}}{2})}\left( \frac{\psi_{i}^{{n + 1},k} - \psi_{j}^{{n + 1},k}}{2} \right)}} \right)$

[0197] second member of the system: ${2\left( \frac{p}{\mu \quad Z} \right)_{\psi_{i}^{n}}Q_{i}} - \left( {{{\Phi_{i}\left( C_{T} \right)}_{\psi_{i}^{{n + 1},k}}\left( \frac{\psi_{i}^{{n + 1},k} - \psi_{i}^{n}}{t^{n + 1} - t^{n}} \right)} - {\sum\limits_{j}^{\quad}\quad {\left( \frac{T_{ij}}{\mu} \right)_{(\frac{\psi_{i}^{{n + 1},k} + \psi_{j}^{{n + 1},k}}{2})}\left( {\psi_{i}^{{n + 1},k} - \psi_{j}^{{n + 1},k}} \right)}}} \right)$

[0198] Solution of the Linear System

[0199] Solution by means of the iterative conjugate gradient algorithm (CGS) which is well-known in the art, with updating of the pressures of the fracture grid cells and of the matrix blocks.

[0200] Time Interval Management

[0201] During well test simulation, the time intervals are generally very short after opening or closing of the well, because the pressure variations are high at these times. Later, the time intervals can be longer when the pressure variations are lower.

[0202] Management of the time intervals connects the length of the time interval n+1 to the maximum pressure variation observed during time interval n. The user must therefore provide the following data:

[0203] Initial time interval: dt_(ini)

[0204] Minimum time interval: dt_(min)

[0205] Maximum time interval dt_(max)

[0206] Lower limit of pressure variation: dp_(min)

[0207] Upper limit of pressure variation: dp_(max)

[0208] Time interval increase factor: rdt+(>1)

[0209] Time interval reduction factor: rdt−(<1).

[0210] From these values, management of the time interval is performed as follows:

[0211] At the time t^(n), the majorant of the pressure variations in the fracture grid cells and the matrix blocks is calculated (i.e. between times t^(n−1) and t^(n)). According to the value of this pressure variation dp, the time interval is either:

[0212] increased by a factor rdt+if dp<dp_(min),

[0213] decreased by a factor rdt−if dp>dp_(max),

[0214] unchanged in the other cases.

[0215] After each bottomhole flow rate condition change, the time interval is re-initialized to the value dt_(ini). Furthermore, an optimization is performed at the end of the simulation period: if tf is the time to be simulated to reach the end of the period and dt the planned time interval, the time interval selected is min(tf/2,dt).

[0216] Simulation Input Data

[0217] The geometry of the fracture network and the attributes of the fractures (conductivity, opening) are given in a file whose format is defined in the aforementioned French patent 2,757,947.

[0218] The petrophysical data to be provided are as follows (the unit is given between parentheses):

[0219] compressibility of the fracture network (c_(f) in bar⁻¹)

[0220] compressibility of the matrix (c_(m) in bar⁻¹)

[0221] matrix permeability (K in mD)

[0222] matrix porosity (Φ_(m) dimensionless).

[0223] The data in question are considered to be homogeneous on the fractured medium considered.

[0224] The data relative to the fluids contained in the fractured medium concern the gas (mobile) and the water (immobile) that is always present in residual amounts in the matrix:

[0225] residual water saturation in the matrix (Sw dimensionless)

[0226] compressibility of the water (c_(w) in bar⁻¹)

[0227] a PVT table comprising the compressibility factor of the gas (Z) and the viscosity of the gas (μ in cpo) as a function of the pressure.

[0228] The data relative to the well are:

[0229] its geometry, in the form of a series of connected segments

[0230] the imposed flow rates, in the form of a curve giving the imposed flow rate as a function of time

[0231] the damage coefficient S₀ of the formation around the well, and the coefficient D of deviation from Darcy's law.

[0232] The values to be provided are the values already defined in the chapter relative to the time interval management : dt_(ini), dt_(min), dt_(max), dp_(min), dp_(max), rdt+ and rdt−.

[0233] The flowchart of FIG. 9 sums up the various modelling stages carried out. 

1) A method for modelling compressible fluid flows in a multilayer porous medium crossed by a network of fractures of given geometry and by a well, comprising the following stages: a) discretizing each fractured layer by a grid pattern comprising fracture grid cells that are centred on nodes either at the fracture intersections or at the fracture ends, each node being associated with a matrix block including all the points that are closer thereto than to neighbouring nodes, b) calculating the local flows between each fracture grid cell and the associated matrix volume in a pseudosteady state, the transmissivity value being obtained by considering a linear variation of the pressure as a function of the distance between any point of the block and the fracture grid cell, c) determining the direct flows between the fracture grid cells, d) determining the direct flows between the matrix volumes through the common edges of the grid cells, e) determining the direct flows between the fracture grid cells and the matrix grid cells on the one hand, and the volume of the well on the other hand, and f) simulating the response of the well for imposed flow rate variations by means of a diffusion equation that connects the interactions between the pressure and flow rate variations that can be observed in the well. 2) A method as claimed in claim 1 wherein, the fluid being highly compressible, the direct flows are determined from transmissivity values suited to turbulent flows and the response of the well is simulated for imposed flow rate variations by means of a modified diffusion equation so as to take account of the compressibility of the fluid. 3) A method as claimed in claim 2, wherein the diffusion equation is modified by introducing a term depending on the pressure, the viscosity and the compressibility factor of the compressible fluid. 4) A method as claimed in any one of claim 2 or 3, wherein the diffusion equation is modified by introducing a pseudopressure taking account of the viscosity and compressibility variation of the fluids as a function of the pressure. 5) A method as claimed in any one of claims 2 to 4, wherein the direct flows are determined by introducing a term of deviation from Darcy's law proportional to the imposed fluid flow rate, which expresses the local pressure drops in the neighbourhood of the well linked with the high velocity of said fluids. 6) A method as claimed in any one of the previous claims, characterized in that the matrix block associated with each fracture grid cell is determined by discretizing each fractured layer in a set of pixels and by calculating the distance from each pixel to the closest fracture grid cell so as to determine the location of the edges between the grid cells, and the calculated distances are used to deduce the value of the transmissivities between each fracture grid cell and the associated matrix volume on the one hand, and between the common edges of the grid cells on the other. 7) A method as claimed in claim 6, characterized in that the position of the edges between the grid cells is located by displacing two elongate windows in the image formed by the pixels, oriented in two perpendicular directions. 